﻿<UserControl x:Class="road2.Views.RoadUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:services="clr-namespace:road2.Services">
    
    <UserControl.Resources>
        <services:LineCountConverter x:Key="LCConv"/>
    </UserControl.Resources>
    
    <Canvas Name="LayoutRoot">
        <Rectangle Name="RoadRect"
                   Stroke="Black" Fill="LightGray"
                   Width="{Binding Length}" 
                   Height="{Binding Path=LineCount, Converter={StaticResource LCConv}}"/>
    </Canvas>
</UserControl>
